package com.rocsea.robot.service.http;

import com.rocsea.robot.model.enums.SqlReplaceDbTypeEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * @Author RocSea
 * @Date 2023/5/15
 */
@FeignClient(name = "backend-tool", url = "https://restnewdev.innodealing.com", path = "/backend-tool")
public interface BackendToolService {

    @PostMapping("sql/replace/ddl")
    String replace(@RequestParam SqlReplaceDbTypeEnum dbType, @RequestBody String sql);
}
